﻿<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta content="Administrator" name="author">
<link href="../css/reset.css" rel="stylesheet" type="text/css" />
<script src="../js/jquery.js"></script>
<script src="../js/jquery.placeholder.js"></script>
<script src="../js/common.js"></script>
<script src="../js/iPlaceholder.js"></script>
<script src="../js/form.js"></script>
<script>
	$(document).ready(function(){
		initHiddenIpt();
		$('#lrrq').val(showLocale(new Date(),4));
		$('#xgrq').val(showLocale(new Date(),4));
	});
	
	function cal(){
		var sl = $('#shul1').val();
		var dj = $('#dj1').val();
		var je = sl * dj;
		var se = je / 1.03 * 0.03;
		
		var sl2 = $('#shul2').val();
		var dj2 = $('#dj2').val();
		var je2 = sl2 * dj2;
		var se2 = je2 / 1.03 * 0.03;
		
		var sl3 = $('#shul3').val();
		var dj3 = $('#dj3').val();
		var je3 = sl3 * dj3;
		var se3 = je3 / 1.03 * 0.03;
		
		var flag=false;
		var flag2=false;
		var flag3=false;
		
		if(!isNaN(sl) && !isNaN(dj)){
			$('#je1').val(je.toFixed(2));
			$('#se1').val(se.toFixed(2));
			$('#sehj').val(se.toFixed(2));
			$('#jshj').val(toDX(je.toFixed(2)));
			flag=true;
		}
		
		if(!isNaN(sl2) && !isNaN(dj2) && sl2 != 0 && dj2 != 0){
			$('#je2').val(je2.toFixed(2));
			$('#se2').val(se2.toFixed(2));
			$('#sl2').val('3%');
			var se = se.toFixed(2)*1.0;
			var se2= se2.toFixed(2)*1.0;
			var je=je.toFixed(2)*1.0;
			var je2=je2.toFixed(2)*1.0;
			$('#sehj').val(se+se2);
			$('#jshj').val(toDX(je+je2));
			flag2=true;
		}
		
		if(!isNaN(sl3) && !isNaN(dj3) && sl3 != 0 && dj3 != 0){
			$('#je3').val(je3.toFixed(2));
			$('#se3').val(se3.toFixed(2));
			$('#sl3').val('3%');
			var se = se.toFixed(2)*1.0;
			var se2= se2.toFixed(2)*1.0;
			var se3= se3.toFixed(2)*1.0;
			var je = je.toFixed(2)*1.0;
			var je2= je2.toFixed(2)*1.0;
			var je3= je3.toFixed(2)*1.0;
			$('#sehj').val(se+se2+se3);
			$('#jshj').val(toDX(je+je2+je3));
			flag3=true;
		}
		
		if(document.getElementById('kplb1').checked){
			if(flag){
				$('#se1').val('免税');
				$('#sehj').val('');
			}
			if(flag2){
				$('#se2').val('免税');
				$('#sehj').val('');
			}
			if(flag3){
				$('#se3').val('免税');
				$('#sehj').val('');
			}
		}
	}
</script>
</head>
<body>
<form id="pageForm" method="post" action="../form/addFormRecord.action">
<input type="hidden" id="formName" id="formName" name="formName" value="dkptfp"/>
<input type="hidden" id="czryUuid" name="czryUuid"/>
<input type="hidden" id="czryName" name="czryName"/>
<input type="hidden" id="formXgrq" name="formXgrq"/>
<input type="hidden" id="swjgUuid" name="swjgUuid"/>
<input type="hidden" id="swjgName" name="swjgName"/>
<input type="hidden" id="menuUuid" name="menuUuid"/>
<input type="hidden" id="menuName" name="menuName"/>
<input type="hidden" id="childMenuUuid" name="childMenuUuid"/>
<input type="hidden" id="childMenuName" name="childMenuName"/>

<input type="hidden" id="lrrq" name="dkptfp.lrrq"/>
<input type="hidden" id="xgrq" name="dkptfp.xgrq"/>
<h2>代 开 普 通 发 票 申 请 表</h2>
<p>纳税人识别号：<input placeholder="身份证号或税号" type="text" id="nsrsbh" name="dkptfp.nsrsbh" style="width:300px;height:100%" value="" /></p>
<p>纳税人名称：<input placeholder="个人姓名或某某公司" type="text" id="nsrmc" name="dkptfp.nsrmc" style="width:300">开票类别：<input type="checkbox" value="征税代开" class="check"  id="kplb" name="dkptfp.kplb""/> 征税代开<input type="checkbox" class="check" value="免税代开" id="kplb1" name="dkptfp.kplb" onblur="javascript:cal();"/> 免税代开</p>

<table cellspacing="0" cellpadding="0" width="649" height="320">
    <tr>
        <td width="231" colspan="4"><p align="center">货物或应税劳务名称 </p></td>
        <td style="width:8%"><p align="center">单位 </p></td>
        <td style="width:8%"><p align="center">数量 </p></td>
        <td style="width:8%" colspan="2"><p align="center">单价 </p></td>
        <td width="119" colspan="2"><p align="center">金额 </p></td>
        <td width="84"><p align="center">税率 </p></td>
        <td width="56"><p align="center">税额 </p></td>
    </tr>
    <tr>
        <td width="231" height="38" colspan="4"><p align="left" class="p_wrap"><input placeholder="据实填写" type="text" style="width:100%" id="hwhyslwmc1" name="dkptfp.hwhyslwmc1">&nbsp;</p></td>
        <td width="49"><p align="left" class="p_wrap"><input placeholder="据实填写" type="text" style="width:100%" id="dw1" name="dkptfp.dw1">&nbsp;</p></td>
        <td width="49"><p align="left" class="p_wrap"><input placeholder="据实填写" type="text" style="width:100%" id="shul1" name="dkptfp.shul1" onblur="javascript:cal();">&nbsp;</p></td>
        <td width="49" colspan="2"><p align="left" class="p_wrap"><input placeholder="据实填写" type="text" style="width:100%" id="dj1" name="dkptfp.dj1" onblur="javascript:cal();">&nbsp;</p></td>
        <td width="119" colspan="2"><p align="left" class="p_wrap"><input placeholder="10300（含税）" type="text" style="width:100%" id="je1" name="dkptfp.je1">&nbsp;</p></td>
        <td width="84"><p align="left" class="p_wrap"><input value="3%" type="text" style="width:100%" id="sl1" name="dkptfp.sl1">&nbsp;</p></td>
        <td width="56"><p align="left" class="p_wrap"><input placeholder="300" type="text" style="width:100%" id="se1" name="dkptfp.se1">&nbsp;</p></td>
    </tr>
    <tr>
        <td width="231" height="38" colspan="4"><p align="left" class="p_wrap"><input type="text" style="width:100%" id="hwhyslwmc2" name="dkptfp.hwhyslwmc2">&nbsp;</p></td>
        <td width="49"><p align="left" class="p_wrap"><input type="text" style="width:100%" id="dw2" name="dkptfp.dw2">&nbsp;</p></td>
        <td width="49"><p align="left" class="p_wrap"><input type="text" style="width:100%" id="shul2" name="dkptfp.shul2" onblur="javascript:cal();">&nbsp;</p></td>
        <td width="49" colspan="2"><p align="left" class="p_wrap"><input type="text" style="width:100%" id="dj2" name="dkptfp.dj2" onblur="javascript:cal();">&nbsp;</p></td>
        <td width="119" colspan="2"><p align="left" class="p_wrap"><input type="text" style="width:100%" id="je2" name="dkptfp.je2">&nbsp;</p></td>
        <td width="84"><p align="left" class="p_wrap"><input type="text" style="width:100%" id="sl2" name="dkptfp.sl2">&nbsp;</p></td>
        <td width="56"><p align="left" class="p_wrap"><input type="text" style="width:100%" id="se2" name="dkptfp.se2">&nbsp;</p></td>
    </tr>
    <tr>
        <td width="231" height="38" colspan="4"><p align="left" class="p_wrap"><input type="text" style="width:100%" id="hwhyslwmc3" name="dkptfp.hwhyslwmc3">&nbsp;</p></td>
        <td width="49"><p align="left" class="p_wrap"><input type="text" style="width:100%" id="dw3" name="dkptfp.dw3">&nbsp;</p></td>
        <td width="49"><p align="left" class="p_wrap"><input type="text" style="width:100%" id="shul3" name="dkptfp.shul3" onblur="javascript:cal();"/>&nbsp;</p></td>
        <td width="49" colspan="2"><p align="left" class="p_wrap"><input type="text" style="width:100%" id="dj3" name="dkptfp.dj3" onblur="javascript:cal();">&nbsp;</p></td>
        <td width="119" colspan="2"><p align="left" class="p_wrap"><input type="text" style="width:100%" id="je3" name="dkptfp.je3">&nbsp;</p></td>
        <td width="84"><p align="left" class="p_wrap"><input type="text" style="width:100%" id="sl3" name="dkptfp.sl3">&nbsp;</p></td>
        <td width="56"><p align="left" class="p_wrap"><input type="text" style="width:100%" id="se3" name="dkptfp.se3">&nbsp;</p></td>
    </tr>
    <tr>
        <td colspan="3"><p>价税合计（大写金额） </p></td>
        <td width="336" colspan="7"><p align="left" class="p_wrap"><input placeholder="壹万零叁佰" type="text" style="width:100%" id="jshj" name="dkptfp.jshj">&nbsp;</p></td>
        <td width="84"><p align="center">税额合计 </p></td>
        <td width="56"><p align="left" class="p_wrap"><input placeholder="10300" type="text" style="width:100%" id="sehj" name="dkptfp.sehj">&nbsp;</p></td>
    </tr>
    <tr>
        <td  style="width:20%" colspan="2"><p>付款方纳税人名称 </p></td>
        <td width="245" colspan="7"><p align="left" class="p_wrap"><input placeholder="某某公司" type="text" style="width:100%" id="fkfnsrmc" name="dkptfp.fkfnsrmc">&nbsp;</p></td>
        <td width="105"><p>经办人电话 </p></td>
        <td width="140" colspan="2"><p align="left" class="p_wrap"><input placeholder="11111111111" type="text" style="width:100%" id="jbrdh" name="dkptfp.jbrdh">&nbsp;</p></td>
    </tr>
    <tr>
        <td style="width:6%" valign="top"><p align="center">申请<br/>理由 </p></td>
        <td width="290" colspan="6" valign="top"><p><input type="checkbox" class="check" value="临时取得收入" id="sqly" name="dkptfp.sqly"/> 临时取得收入 <br />
            <input type="checkbox" class="check" value="外出经营确因业务量小、开票频度低" id="sqly" name="dkptfp.sqly"/> 外出经营确因业务量小、开票频度低 </p></td>
        <td width="287" colspan="5" valign="top"><p style="margin-top:5px">                                            （签章） <br />
            经办人：<input type="hidden" id="jbr" name="dkptfp.jbr">                              年      月      日<input type="hidden" id="jbrq" name="dkptfp.jbrq"> </p></td>
    </tr>
    <tr>
        <td width="637" colspan="12"><p>提交资料：<input type="checkbox" class="check" value="身份证明复印件" id="tjzl" name="dkptfp.tjzl"/> 身份证明复印件   <input type="checkbox" class="check" value="购销合同或付款证明" id="tjzl" name="dkptfp.tjzl"/> 购销合同或付款证明   <input type="checkbox" class="check" value="村民委员会证明" id="tjzl" name="dkptfp.tjzl"/> 村民委员会证明 </p></td>
    </tr>
    <tr height="100">
        <td style="width:45%" colspan="5" valign="top"><p>代开发票号码： <input type="text" style="width:50%" id="dkfphm" name="dkptfp.dkfphm"><br />
            国税税票号码： <input type="text" style="width:50%" id="gssphm" name="dkptfp.gssphm"><br />
            地税税票号码： <input type="text" style="width:50%" id="dssphm" name="dkptfp.dssphm" id="swjgyj" name="dkptfp.swjgyj"></p></td>
        <td style="width:55%" colspan="7" valign="top"><p>税务机关意见：<input type="text" style="width:40%"> <br /><br />
            经办人：<input type="hidden" id="swjgjbr" name="dkptfp.swjgjbr">               负责人：<input type="hidden" id="swjgfzr" name="dkptfp.swjgfzr">                  税务机关章）                             年     月     日<input type="hidden" id="swjgjbrq" name="dkptfp.swjgjbrq">                    年     月     日<input type="hidden" id="swjgqzrq" name="dkptfp.swjgqzrq"> </p></td>
    </tr>
</table>
</form>
</body>
</html>
